package com.atguigu.spzx.model.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.util.Date;

/**
 * title:
 * author: zgl
 * date: 2023/12/26
 * description：
 */
@Data
public class BaseEntity  {
    private Long id;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean deleted;
}
